
function z = myxor(x,y)
z=zeros(1,length(x));
for k=1:length(x)
    if x(k) == y(k)
        z(k)=-1;
    else
        z(k)=1;
    end
end
